(() => {
    // 类
    class Person {
        constructor(name, age, gender) {
            this.name = name;
            this.age = age;
            this.gender = gender;
        }
        sayHi(str) {
            console.log(`大家好，我是 ${this.name}, 今年 ${this.age}, 是个 ${this.gender}`);
        }
    }
    const person = new Person('路飞', 12, '男');
    person.sayHi('123');
})();
